<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="*|/"><xsl:apply-templates/></xsl:template>

<xsl:template match="text()|@*"><xsl:value-of select="."/></xsl:template>

<xsl:template match='nbsp' name='nbsp'>
<xsl:text disable-output-escaping='yes'>&amp;nbsp;</xsl:text>
</xsl:template>

<xsl:include href='../xsl.include.main.xsl'/>

<xsl:template match="findUserRowSimple">
	<table bgcolor="#666666" class="bboxL" border="0" cellspacing="1" cellpadding="2" width="100%">
	<tr><td colspan="3" align="center" bgcolor="#CECFCE">Utenti trovati:</td></tr>
	<xsl:for-each select="row">
		<tr bgcolor="#FFFFFF">
		<td align="right">
		<xsl:choose>
			<xsl:when test='@answerid="24" or @answerid="26"'>
				<img src="imgs/symbol_m.gif"/>
			</xsl:when>
			<xsl:when test='@answerid="25" or @answerid="27"'>
				<img src="imgs/symbol_f.gif"/>
			</xsl:when>
		</xsl:choose>
		</td>
		<td align="left">
<xsl:variable name="smile">
	<xsl:choose>
		<xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) ) and @emo = 0">
			/imgs/ecool.gif
		</xsl:when>
		<xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) ) and @emo = 1">
			/imgs/ewink.gif
		</xsl:when>
		<xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) ) and @emo = 2">
			/imgs/elove.gif
		</xsl:when>
		<xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) ) and @emo = 3">
			/imgs/etongue.gif
		</xsl:when>
		<xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) ) and @emo = 4">
			/imgs/ecrazy.gif
		</xsl:when>
		<xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) ) and @emo = 5">
			/imgs/ehappy.gif
		</xsl:when>
		<xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) ) and @emo = 6">
			/imgs/esmile.gif
		</xsl:when>
		<xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) ) and @emo = 7">
			/imgs/eeyes.gif
		</xsl:when>
		<xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) ) and @emo = 8">
			/imgs/econfused.gif
		</xsl:when>
		<xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) ) and @emo = 9">
			/imgs/esad.gif
		</xsl:when>
		<xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) ) and @emo = 10">
			/imgs/eangry.gif
		</xsl:when>
		<xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) )">
			/imgs/eqmark.gif
		</xsl:when>
		<xsl:otherwise>
			/imgs/spacer.gif
		</xsl:otherwise>
	</xsl:choose>
</xsl:variable>

<xsl:variable name="emoDescr">
	<xsl:choose>
		<xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) ) and @emo = 0">
			Oggi mi sento troppo figo/a!
		</xsl:when>
		<xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) ) and @emo = 1">
			Ci siamo capiti...
		</xsl:when>
		<xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) ) and @emo = 2">
			Ho una cotta in corso!
		</xsl:when>
		<xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) ) and @emo = 3">
			Oggi sono arrapato!
		</xsl:when>
		<xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) ) and @emo = 4">
			Oggi non ci sto con la testa!
		</xsl:when>
		<xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) ) and @emo = 5">
			Sto troppo bene!
		</xsl:when>
		<xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) ) and @emo = 6">
			Sto bene!
		</xsl:when>
		<xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) ) and @emo = 7">
			Mhh... Boh... Ci devo pensare...
		</xsl:when>
		<xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) ) and @emo = 8">
			Mi sta prendendo la depressione...
		</xsl:when>
		<xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) ) and @emo = 9">
			Nessuno mi vuole bene!
		</xsl:when>
		<xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) ) and @emo = 10">
			Oggi mi girano!
		</xsl:when>
		<xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) )">
			???
		</xsl:when>
		<xsl:otherwise>
			
		</xsl:otherwise>
	</xsl:choose>
</xsl:variable>

<img alt="{$emoDescr}" src="{$smile}"/>
</td>
<td>
	<xsl:call-template name="user">
		<xsl:with-param name="status" select="@uStatus"/>
		<xsl:with-param name="sexid" select="@sexid"/>
		<xsl:with-param name="certified" select="@certified"/>
		<xsl:with-param name="userid" select="@userid"/>
		<xsl:with-param name="nick" select="@nick"/>
		<xsl:with-param name="bold" select="/activity/@loggedUser=@userid"/>
		<xsl:with-param name="buddy" select="0"/>
		<xsl:with-param name="newbie" select="@dayiscr&lt;15 and ( floor( /activity/@loggedStatus div 4) mod 4 or floor( /activity/@loggedStatus div 16) mod 16 or floor( /activity/@loggedStatus div 32) mod 32 )"/>
	</xsl:call-template>
</nobr>
		</td>
		<td align="left">
			<a style="color:#006699;" href="invite2Activity.aspx?activityId={/findUserRowSimple/@activityId}&amp;userGuid={@userid}">invita a <xsl:value-of select="/findUserRowSimple/@title"/></a>
		</td>
		</tr>
	</xsl:for-each>
	</table>
</xsl:template>

</xsl:stylesheet>